home *** CD-ROM | disk | FTP | other *** search
/ BMUG PD-ROM 1995 Fall / PD-ROM F95.toast / Utilities / Text Utils / Alpha 5.81 ƒ / Tcl / SystemCode / appleEvents.tcl < prev    next >
Encoding:
Text File  |  1994-06-15  |  478 b   |  21 lines  |  [TEXT/ALFA]

  1.  
  2. # make alias list to pass to AEBuild
  3. proc makeAlis {name} {
  4.     concat {[alis(«} [coerce TEXT $name -x alis] {»)]}    
  5. }
  6.  
  7.  
  8.  
  9. # Queued replies are passed through AEPrint and then to this routine.
  10. proc handleReply {rep} {
  11.     global ALPHA lastReply
  12.     switchTo $ALPHA
  13.     set lastReply $rep
  14. }
  15.  
  16.  
  17. # Return an object record specifying the desired think project file.
  18. proc fileObject {name} {
  19.     join [concat {obj\{want:type('SFIL'), from:'null'(), form:'name', seld:“} [file tail $name] {”\}}] ""
  20. }
  21.